home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / S3D_2E1.1.sit / Shout3d_2.0 / docs / workflow_tutorial / references / shoutbox3.s3d < prev    next >
Text File  |  2000-10-17  |  2KB  |  82 lines

  1. DEF TIMER TimeSensor {
  2.   cycleInterval 10
  3.   loop TRUE
  4.   startTime -1
  5. }
  6.  
  7. DEF INTERP OrientationInterpolator {
  8.   key [0, 1.0]
  9.   keyValue [
  10.         0 1 0 0,
  11.         0 1 0 3.14
  12.         ]
  13. }
  14.  
  15. DEF TRANS Transform {
  16.    translation 0 0 0
  17.    rotation 0 1 0 0
  18.    children [
  19.       Shape {
  20.          appearance [
  21.             MultiAppearance {
  22.                material Material {
  23.                   diffuseColor 0.5373 0.1961 0.1961
  24.                   specularColor 0.045 0.045 0.045
  25.                   shininess 0.25
  26.                   transparency 0
  27.                }
  28.                diffuseMap DiffuseMap {
  29.                   texture ImageTexture {
  30.                      url "shout3dlogo.gif"
  31.                   }
  32.                }
  33.             }
  34.          ]
  35.          geometry MultiMesh {
  36.             coord Coordinate {
  37.                point [
  38.                   -50 0 50, 50 0 50, -50 0 -50, 50 0 -50,
  39.                   -50 100 50, 50 100 50, -50 100 -50, 50 100 -50
  40.                ]
  41.             }
  42.             coordIndex [
  43.                0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1
  44.                0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1
  45.                3 2 6 -1 6 7 3 -1   2 0 4 -1 4 6 2 -1
  46.             ]
  47.             smoothingIndex [
  48.                2 -1 2 -1 3 -1 3 -1 4 -1 4 -1
  49.                5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  50.             ]
  51.             appearanceIndex [
  52.                1 1 0 0 4 4 3 3 5 5 2 2
  53.             ]
  54.             textureMappings [
  55.                TextureMapping {
  56.                   texCoord TextureCoordinate {
  57.                      point [
  58.                         1 0, 0 0, 0 0, 0 0, 1 1, 0 1,
  59.                         0 1, 0 1, 1 0, 1 1, 0 1, 0 1
  60.                         0 0, 1 0, 0 0, 1 0, 1 1, 1 1,
  61.                         0 1, 0 0, 0 0,   1 0, 1 1, 1 1,
  62.                         0 1, 0 0, 0 0, 1 0, 1 1, 1 1,
  63.                         0 0, 1 0, 1 1, 1 1, 0 0, 1 1
  64.                      ]
  65.                   }
  66.                   texCoordIndex [
  67.                      8 9 10 -1 11 12 13 -1 14 15 16 -1
  68.                      17 18 19 -1 20 21 22 -1 23 24 25 -1
  69.                      26 27 28 -1   29 5 1 -1 30 31 32 -1
  70.                      33 7 3 -1 34 0 35 -1 4 6 2 -1
  71.                   ]
  72.                }
  73.             ]
  74.          }
  75.       }
  76.    ]
  77. }
  78.  
  79.  
  80. ROUTE TIMER.fraction_changed TO INTERP.set_fraction
  81. ROUTE INTERP.value_changed To TRANS.set_rotation
  82.